/* 常用初始化样式 */

body {
    max-width: 540px;
    min-width: 320px;
    margin: 0 auto;
    font: normal 14px/1.5 Tahoma, "Lucida Grande", Verdana, "Microsoft Yahei", STXihei, hei;
    color: #000000;
    background-color: #f2f2f2;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    height: 5000px;
}


/* 固定定位的盒子 */

.search-index {
    display: flex;
    /* 有了定位margin无效 */
    position: fixed;
    top: 0;
    left: 50%;
    width: 100%;
    height: 44px;
    max-width: 540px;
    min-width: 320px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    background-color: #347177;
    z-index: 9999;
}

.user {
    display: block;
    height: 44px;
    width: 44px;
    font-size: 12px;
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    margin-right: 10px;
}

.user::before {
    /* 不可省略 */
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    background: url('../img/home-common-sprite.png') no-repeat 0px -36px;
    /* 记得缩放精灵图 */
    background-size: 21px auto;
    margin: 3px auto 0;
}

.search {
    height: 26px;
    border: 1px solid #cccccc;
    flex: 1;
    margin: 5px 10px;
    border-radius: 20px;
    background-color: #ffffff;
    font-size: 13px;
    color: #666666;
    padding-left: 40px;
    padding-top: 6px;
    box-shadow: 0px 2px rgba(0, 0, 0, 0.2);
}

.search::before {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    top: 15px;
    left: 25px;
    background: url('../img/home-common-sprite.png') no-repeat 0px 0px;
    /* 记得缩放精灵图 */
    background-size: 21px auto;
}

.focus img {
    width: 100%;
    margin-top: 40px;
}

.local-nav {
    display: flex;
    height: 64px;
    width: 95%;
    background-color: #ffffff;
    border-radius: 8px;
    margin-left: 12px;
    box-shadow: 0px 2px rgba(0, 0, 0, 0.2);
    transform: translateY(-15px);
    /* margin-top会被压到底下 */
    /* margin-top: -15px; */
}

.local-nav li {
    list-style: none;
    flex: 1;
    margin-top: 8px;
}

.local-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #222222;
    text-decoration: none;
    font-size: 12px;
}

.local-nav span[class^=nav-icon] {
    width: 32px;
    height: 32px;
    background: url(../img/home-fivemain-sprite.png) no-repeat;
    background-size: 32px auto;
}

.local-nav li .nav-icon1 {
    background-position: 0 0;
}

.local-nav li .nav-icon2 {
    background-position: 0 -32px;
}

.local-nav li .nav-icon3 {
    background-position: 0 -64px;
}

.local-nav li .nav-icon4 {
    background-position: 0 -96px;
}

.local-nav li .nav-icon5 {
    background-position: 0 -128px;
}

nav {
    overflow: hidden;
    border-radius: 10px;
    margin: 0 4px 3px;
}

.nav-common {
    display: flex;
    height: 88px;
}

.nav-common:nth-child(1) {
    margin-top: -4px;
}

.nav-common:nth-child(2) {
    margin: 4px 0;
}

.nav-items {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.nav-items a {
    flex: 1;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    /* 文字阴影效果 */
    text-shadow: 1px 1px rgba(0, 0, 0, 0.2);
    text-align: center;
    line-height: 44px;
}


/* 前两个 */

.nav-items:nth-child(-n+2) {
    border-right: 1px solid #ffffff;
}

.nav-items a:nth-child(1) {
    border-bottom: 1px solid #ffffff;
}

.nav-items:nth-child(1) a {
    border: 0;
}

.nav-common:nth-child(1) .nav-items:nth-child(1) a {
    background: url('../upload/hotel.png') no-repeat;
    background-size: 73px auto;
    background-position: 50px 40px;
}

.nav-common:nth-child(1) {
    background: -webkit-linear-gradient(left, #fa5a55, #fa994d);
}

.nav-common:nth-child(2) .nav-items:nth-child(1) a {
    background: url('../upload/jipiao.png') no-repeat;
    background-size: 73px auto;
    background-position: 50px 40px;
}

.nav-common:nth-child(2) {
    background: -webkit-linear-gradient(left, #4b90ed, #53bced);
}

.nav-common:nth-child(3) .nav-items:nth-child(1) a {
    background: url('../upload/lvyou.png') no-repeat;
    background-size: 73px auto;
    background-position: 50px 40px;
}

.nav-common:nth-child(3) {
    background: -webkit-linear-gradient(left, #34c2a9, #6cd559);
}

.ten-box {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.ten-box li {
    /* 子盒子可以写相对于父盒子的占比 */
    flex: 20%;
    height: 55px;
    list-style: none;
    background-color: #ffffff;
    box-shadow: 0px, 2px, rgba(0, 0, 0, 0.2);
}

.ten-box li a {
    display: flex;
    text-decoration: none;
    color: #222222;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
}

.entry-icon {
    height: 28px;
    width: 28px;
    background: url('../img/un_ico_subnav.png') no-repeat;
    background-size: 28px auto;
}

.ten-box li:nth-child(2) .entry-icon {
    background-position: 0 -28px;
}

.ten-box li:nth-child(3) .entry-icon {
    background-position: 0 -56px;
}

.ten-box li:nth-child(4) .entry-icon {
    background-position: 0 -84px;
}

.ten-box li:nth-child(5) .entry-icon {
    background-position: 0 -112px;
}

.ten-box li:nth-child(6) .entry-icon {
    background-position: 0 -140px;
}

.ten-box li:nth-child(7) .entry-icon {
    background-position: 0 -168px;
}

.ten-box li:nth-child(8) .entry-icon {
    background-position: 0 -196px;
}

.ten-box li:nth-child(9) .entry-icon {
    background-position: 0 -224px;
}

.ten-box li:nth-child(10) .entry-icon {
    background-position: 0 -252px;
}

.sales-box {
    background-color: #ffffff;
    margin: 4px;
    border-top: 1px solid #bbb;
}

.sales-hd {
    position: relative;
    height: 44px;
    border-bottom: 1px solid #cccccc;
}

.sales-hd h2 {
    position: relative;
    text-indent: -999px;
    overflow: hidden;
}

.sales-hd h2::after {
    position: absolute;
    content: "";
    top: 8px;
    left: 20px;
    width: 79px;
    height: 15px;
    background-color: #f000f0;
    background: url('../upload/un_home_text.png') no-repeat;
    background-size: 79px auto;
    background-position: 0 -20px;
}

.icon-gg {
    position: absolute;
    left: 100px;
    height: 100px;
    width: 100px;
    background: url('../upload/icon-gg.png') no-repeat;
    background-size: 36px auto;
    width: 36px;
    height: 15px;
    -webkit-transform: translateY(50%);
    transform: translateY(50%);
}

.sales-hd a {
    position: absolute;
    right: 5px;
    top: 5px;
    background: -webkit-linear-gradient(left, #ff506c, #ff6bc6);
    height: 20px;
    line-height: 20px;
    border-radius: 10px;
    padding: 2px 20px 3px 10px;
    text-decoration: none;
    color: #ffffff;
}

.sales-hd a::after {
    content: "";
    position: absolute;
    top: 9px;
    right: 9px;
    width: 7px;
    height: 7px;
    border-top: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    transform: rotate(45deg);
}

.ad-box {
    display: flex;
    width: 100%;
    height: 116px;
}

.ad-box div {
    flex: 1;
    background-color: #ffffff;
}

.ad-box img {
    height: 116px;
    width: auto;
}

.ad-box div:nth-child(1) {
    border-right: 1px solid #cccccc;
}

.bottom-box {
    display: flex;
    height: 60px;
    background-color: #ffffff;
    margin-top: 5px;
}

.bottom-box li {
    list-style: none;
    flex: 1;
    margin-top: 15px;
}

.bottom-box li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #222222;
    text-decoration: none;
    font-size: 12px;
}

.bottom-box span[class^=bottom-icon] {
    /* 只有块级元素才有宽和高 */
    display: block;
    width: 20px;
    height: 20px;
    /* background-color: #000000; */
    background: url(../img/un_ico_home.png) no-repeat;
    background-size: 104px auto;
}

.bottom-icon1 {
    background-position: -59px -153px !important;
}

.bottom-icon2 {
    background-position: -59px -173px !important;
}

.bottom-icon3 {
    background-position: -59px -310px !important;
}

.tool {
    position: relative;
    height: 24px;
}

.tool div {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 5px;
}

.tool a {
    color: #666666;
    text-decoration: none;
}

.tool a:nth-child(3)::after {
    content: "";
    position: absolute;
    left: 147px;
    top: 6px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #666666;
    border-right: 1px solid #666666;
    transform: rotate(135deg);
}

.copyright {
    height: 28px;
    color: #666666;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    font-size: 12px;
}